/* 
 * File:   TessMetaInfo.h
 * Author: Guilherme Monteiro
 *
 */

#ifndef TESSMETAINFO_H
#define	TESSMETAINFO_H

#define USER_ANSWER string("/respostaUsuarioTT")
#define TRANSCRIPTIONS string("/transcricoes")
#define TEXTS string("/texts")
#define CONFIDENCES string("/confidences")

#include "../../TableTranscriber2/headers/MetaInfo.h"

class TessMetaInfo : public MetaInfo {
public:
    TessMetaInfo(string highTablePath) throw (NullImageException) ;
    TessMetaInfo(const TessMetaInfo& orig);
    virtual ~TessMetaInfo();
    
    string getTIFFImagePath();
    string getUserAnswerPath();
    string getTranscriptionPath();
    
    string getOutputTextsFileName();
    string getOutputConfidencesFileName();
    
    string getHighResolutionTablePath();
    string getLowResolutionTablePath();
private:   
    string tiffImagePath;
    string transcriptionPath;
    string userAnswerPath;
    
    string outputTextsFileName;
    string outputConfidencesFileName;
    
    string lowResolutionTablePath;
    string highResolutionTablePath;
    
    void setTIFFImagePath();
    void setUserAnswerPath();
    void setTranscriptionPath();
    
    void setOutputConfidencesFileName();
    void setOutputTextsFileName();
    
    void setLowResolutionTablePath();
    void setHighResolutionTablePath(); 
    
protected:
    void setOriginalPath(string originalPath) throw (NullImageException);
    void setMetadata();   
    void setSubMetadata();
};

#endif	/* TESSMETAINFO_H */

